/*
 *@Author: 张楚
 *@Date: 2021-08-09 20:43:27
 *@Description: 滚动教程的主页面
*/
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:totaldemo/netCrouse/scroll_home/ListWheelScrollView.dart';
import 'package:totaldemo/netCrouse/scroll_home/PageView.dart';
import 'package:totaldemo/netCrouse/scroll_home/ReorderableListView.dart';
import 'package:totaldemo/netCrouse/scroll_home/dismissible.dart';
import 'package:totaldemo/netCrouse/scroll_home/scrollbar.dart';
import 'package:totaldemo/netCrouse/scroll_home/singleChildScrollView.dart';

class ScrollHomePage extends StatefulWidget {
  const ScrollHomePage({Key key}) : super(key: key);
  @override
  _ScrollHomePageState createState() => _ScrollHomePageState();
}

class _ScrollHomePageState extends State<ScrollHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('ScrollHomePage'),
      ),
      body: ListView(
        children: [
          ElevatedButton(
              onPressed: () {
                Get.to(() => ListWheelScrollViewPage());
              },
              child: Text('ListWheelScrollView + RotatedBox(旋转)')),
          ElevatedButton(
              onPressed: () {
                Get.to(() => PageViewWidget());
              },
              child: Text('pageview')),
          ElevatedButton(
              onPressed: () {
                Get.to(() => ReorderableListViewPage());
              },
              child: Text('ReorderableListView')),
          ElevatedButton(
              onPressed: () {
                Get.to(() => SingleChildScrollViewPage());
              },
              child: Text('SingleChildScrollView（需要滚动的时候滚动）')),
          ElevatedButton(
              onPressed: () {
                Get.to(() => ScrollerBarPage());
              },
              child: Text('ScrollerBarPage和RefreshIndicator下拉刷新')),
          ElevatedButton(
              onPressed: () {
                Get.to(() => DissmissiblePage());
              },
              child: Text('DissmissiblePage滑动删除')),
        ],
      ),
    );
  }
}
